<div class="grid_7">
    <div class="box">
        <h2>
            <a href="#" id="toggle-tables">Listing Approval</a>
        </h2>
        <fieldset> 
            <legend>Listing Approval</legend>
            <?php foreach ($listing as $listing) : ?>
                <div class="field" >
                    <div style="width:750px; float: left; height:40px;">
                        <span style="float:left; margin-right:50px" ><?= substr($listing->posted_on, 0, 12); ?></span>
                        <span style="float:left;margin-right:50px"><?= $this->management_model->get_version('CAR', $listing->version)->version; ?> </span>
                        <span style="float:left;margin-right:50px"><?= $this->member_model->get_member($listing->user)->first_name . ' ' . $this->member_model->get_member($listing->user)->last_name; ?></span>
                        <span style="float:right;">Rs.<?= $listing->price; ?></span>
                    </div>
                    <a href="<?= base_url(); ?>admin/approval/active_listing/<?= $listing->id; ?>" class="link-button" style="float: right" onclick="return confirm('Are you sure you want to Active?')"> Active </a>
                </div>      

            <?php endforeach; ?>
        </fieldset>    
        <div class="pagination" align="left"> <?php  echo $this->pagination->create_links(); ?>  </div>
    </div>
</div>